# -*- coding: utf-8 -*-
# @Author: XiaoRui
# @FileName: globalvar.py
# @Time: 2021/4/28 10:03
# @Software: PyCharm


class GlobalVar:
    msg_content = None
    recv_msg_content = False
    send_ip_addr = None
    current_exam_round = 0


def set_msg_content_value(value):
    # 设置msg_content的值
    GlobalVar.msg_content = value


def get_msg_content_value():
    # 获取msg_content的值
    return GlobalVar.msg_content


def set_recv_msg_content(state):
    # 是否收到开始24002的报文，是为true，否则为false
    GlobalVar.recv_msg_content = state


def get_recv_msg_content():
    return GlobalVar.recv_msg_content


def set_send_id_addr(addr):
    GlobalVar.send_ip_addr = addr


def get_send_id_addr():
    return GlobalVar.send_ip_addr


def set_exam_round(exam_round):
    GlobalVar.current_exam_round = exam_round


def get_exam_round():
    return GlobalVar.current_exam_round
